package com.pojo;

/**
 * @Author hjb
 * @Version 1.0
 * @Contact 1754729389@qq.com
 */
public class User {
    //    user_id INT PRIMARY KEY AUTO_INCREMENT,
//    user_name VARCHAR(20) NOT NULL,
//    wuser_password VARCHAR(20) NOT NULL,
//    user_address VARCHAR(40),
//    user_email VARCHAR(50),
//    user_phone VARCHAR(20),
//    user_identity CHAR(1) DEFAULT 0,
//    user_code VARCHAR(20),
//    user_deposit DOUBLE(6,2),
//    user_balance DOUBLE(6,2),
    private Integer id;
    private String username;
    private String password;
    private String address;
    private String email;
    private String phone;
    private String identity;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + username + '\'' +
                ", password='" + password + '\'' +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", identity='" + identity + '\'' +
                '}';
    }

    public User() {
    }

    public User(String username, String password, String address, String email, String phone) {
        this.username = username;
        this.password = password;
        this.address = address;
        this.email = email;
        this.phone = phone;
    }

    public User(Integer id, String username, String password, String address, String email, String phone, String identity) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.address = address;
        this.email = email;
        this.phone = phone;
        this.identity = identity;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }
}